import { ApiProperty } from '@nestjs/swagger';

export class CreateBookDto {
    @ApiProperty({
        description: '书籍名称',
        required: true,
    })
    name: string;
    @ApiProperty({
        description: '书籍封面',
        required: true,
    })
    cover: string;
    @ApiProperty({
        description: '书籍类型',
        required: true,
    })
    type: number;
    @ApiProperty({
        description: '书籍数量',
        required: true,
    })
    total: number;
    @ApiProperty({
        description: '描述',
        required: true,
    })
    describe: string;
}
